using SmartSoft.DAL;
using System.Web.Services;
using System;
using System.Data;
using System.Data.SqlClient;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
public class WSDmNxDataAccess : System.Web.Services.WebService
{
    private DmNxDataAccess objDataAccess = new DmNxDataAccess();
    public WSDmNxDataAccess()
{
}


    [WebMethod(MessageName = "NoneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet()
{
        return objDataAccess.GetDataSet();
}

    [WebMethod(MessageName = "OneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet(string ps_Code)
{

return objDataAccess.GetDataSet(ps_Code);
}

    [WebMethod]
    public int SaveRow(bool pb_NewChecked, DataTable tableRow)
{

return objDataAccess.SaveRow(pb_NewChecked, tableRow.Rows[0]);
}
}
